package com.ruoyi.project.tool.swagger;


import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysUserDiscount;
import com.ruoyi.project.system.service.SysUserDiscountService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SysUserDiscount)表控制层
 *
 * @author makejava
 * @since 2020-03-04 19:16:56
 */
@RestController
@RequestMapping("/mobile/discount/")
public class UserDiscountController {
    /**
     * 服务对象
     */
    @Resource
    private SysUserDiscountService sysUserDiscountService;

    /**
     * 通过主键查询单条数据
     *
     * @param sysUserDiscount
     * @return 单条数据
     */
    @PostMapping("selectList")
    public AjaxResult select(@RequestBody(required=false) SysUserDiscount sysUserDiscount) {
        return AjaxResult.success(this.sysUserDiscountService.queryAll(sysUserDiscount));
    }

}